<?
if(!EDITOR) common::accessdenied();
if(POST) {
    switch (PARAMS) {
        case 'delete':
            profile::photo(array('accountID'=>$_POST['accountID'],'ID'=>$_POST['photoID'],'check'=>true),'delete');
        break;
        case 'approve':
            profile::photo($_POST['photoID'],'approve');
        break;
    }
} else {
    $data->profile->photo = profile::photos(array('forcheck'=>true));
    $data->TITLE = $data->profile->photo->caption?_('Photo checking'):_('Content not found');
    $data->DESCRIPTION = $data->profile->photo->caption?_('Photo checking service.'):_('This content is currently unavailable');
    $data->WIDGETS = 'common';
}
?>